package me.gacl.domain;

import java.util.List;

public class User {
	private Integer userId;
	private String code;
	private String name;
	private String password;
	private List<Blog> blogs;

	public User() {

	}

	public List<Blog> getBlogs() {
		return blogs;
	}

	public void setBlogs(List<Blog> blogs) {
		this.blogs = blogs;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "User [code=" + code + ", name=" + name + ", password=" + password + ", blogs=" + blogs +"]";
	}

}
